<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>编辑分类</title>
	<hdjs/>
	<bootstrap/>
	<css file="__PUBLIC__/Css/public.css"/>
</head>
<body>

	<form action="" method="post"  class='hd-form'>
	<div class="wrap">
	<div class="menu_list">
		<ul>
			<li><a href="{|U:'Category/index'}"  > 商品分类列表 </a></li>
			<li><a href="javascript:;" class="action"> 编辑商品分类 </a></li>
			<li><a href="{|U:'Category/update_cache'}"> 更新商品分类缓存 </a></li>
		</ul>
	</div>
	<table class='table table-striped table-bordered '>
		<tbody>
			<tr>
				<td class="w100">上级分类</td>
				<td>
					<select name="pid" >
						<option value="0">一级分类</option>
						<foreach from='$category' value='$v'>
							<option value="{$v.cid}" <if value="$data['pid'] eq $v['cid']">selected='selected'</if>>{$v._name}</option>
						</foreach>
					</select>
				</td>
			</tr>
			<tr>
				<td class="w100">分类名称</td>
				<td>
					<input type="text" name="cname"  class='w200' value="{$data.cname}" />
				</td>
			</tr>

			<tr>
				<td>分类标题</td>
				<td>
					<textarea name="title" class='w500 h100'>{$data.title}</textarea>
				</td>
			</tr>
			<tr>
				<td>分类关键字</td>
				<td>
					<textarea name="keywords" class='w500 h100'>{$data.keywords}</textarea>
				</td>
			</tr>
			<tr>
				<td>分类描述</td>
				<td>
					<textarea name="description" class='w500 h100'>{$data.description}</textarea>
				</td>
			</tr>
			<tr>
				<td>分类排序</td>
				<td>
					<input name="sort" type="text" class='w200' value="{$data.sort}" />
				</td>
			</tr>
			<tr>
				<td>是否显示</td>
				<td>
					<label>
						<input <if value="$data['display']">checked='checked'</if>  type="radio" name="display" value="1"/>	
						<span>显示</span>
					</label>
					<label>
						<input <if value="!$data['display']">checked='checked'</if> type="radio" name="display" value="0"/>	
						<span>隐藏</span>
					</label>
				</td>
			</tr>
		</tbody>
	</table>
	</div>
	<div class='position-bottom'>
		<input type="submit" class='hd-cancel' value="编辑" />
		<input type="hidden" name="cid" value="{$hd.get.cid}" />
	</div>
	</form>
</body>
</html>